//
//  UIViewController+Router.h
//  Express
//
//  Created by lhongl on 2025/9/28.
//  Copyright © 2025 QM. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIViewController (Router)

/// 传递数据
/// - Parameters:
///   - value: 值
///   - key: key
///   - fail: 失败回调
- (void)setValue:(id)value forKey:(NSString *)key failure:(void (^ __nullable)(NSString *key))fail;

@property (nonatomic, copy) void (^failureBlock)(NSString *key);

@end

NS_ASSUME_NONNULL_END
